package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 科普对象 news
 * 
 * @author ruoyi
 * @date 2023-12-04
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻id */
    private Long newId;

    /** 新闻名字 */
    @Excel(name = "新闻名字")
    private String newName;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newTitle;

    /** 新闻头像 */
    @Excel(name = "新闻头像")
    private String newAvatar;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newDate;

    public void setNewId(Long newId) 
    {
        this.newId = newId;
    }

    public Long getNewId() 
    {
        return newId;
    }
    public void setNewName(String newName) 
    {
        this.newName = newName;
    }

    public String getNewName() 
    {
        return newName;
    }
    public void setNewTitle(String newTitle) 
    {
        this.newTitle = newTitle;
    }

    public String getNewTitle() 
    {
        return newTitle;
    }
    public void setNewAvatar(String newAvatar) 
    {
        this.newAvatar = newAvatar;
    }

    public String getNewAvatar() 
    {
        return newAvatar;
    }
    public void setNewDate(Date newDate) 
    {
        this.newDate = newDate;
    }

    public Date getNewDate() 
    {
        return newDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newId", getNewId())
            .append("newName", getNewName())
            .append("newTitle", getNewTitle())
            .append("newAvatar", getNewAvatar())
            .append("newDate", getNewDate())
            .toString();
    }
}
